﻿using Domain;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Utility;
using System.Utility.DBMS;
using System.Utility.UI;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebUI
{
    public partial class yourlisting : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            grdList.DataSource = GetTable();
            grdList.DataBind();
        }

        private DataTable GetTable()
        {
            AppUser usr = StateManager<AppUser>.GetSessionState(SessionKey.UserInfo);
            string userid = usr.EmailId;
            return DBHelper.GetDataTable("GetListing", new object[] { userid }).Tables[0];
        }
    }
}